package com.spider.common.bean.ganji;

import com.xuxueli.crawler.annotation.PageFieldSelect;
import com.xuxueli.crawler.annotation.PageSelect;
import com.xuxueli.crawler.conf.XxlCrawlerConf;
import lombok.Data;

/**
 * @author marver
 * @Description div.des > h2,div.list-info.warehouse > h2
 *              58规则
 *              dd.dd-item.title 赶集规则
 * @date 2018/12/17 10:36
 */
@PageSelect(cssQuery = "div.des > h2,div.list-info.warehouse > h2,div.list-info > h2,dd.dd-item.title")
@Data
public class GjHouseDetailVo {
    /*@PageFieldSelect(cssQuery = "a,a>span")
    private String title;*/

    @PageFieldSelect(cssQuery = "a", selectType = XxlCrawlerConf.SelectType.ATTR, selectVal = "abs:href")
    private String htmlHref;

    @Override
    public String toString() {
        return "PageVo{" +
                "title='" + htmlHref + '\'' +
                //", description='" + description + '\'' +
                ", htmlHref='" + htmlHref + '\'' +
                '}';
    }
}
